//Naming
Name AAGun_12.7cm_Type89
ShortName aagun_12.7cm_type89
ItemID 11960
Description MAX HP:2000_AAGun 12.7cm Type89 Shell[AA]
//Visuals
Icon AAgun_12.7cm_Type89
Model cvts.127mm_Type89
Texture AAGun_12.7cm_Type89
//Third Person Camera Distance
CameraDistance 7.5
//Throttle
MaxThrottle 0
MaxNegativeThrottle 0
//Steering modifiers
TurnLeftSpeed 0
TurnRightSpeed 0
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.0
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
WheelPosition 0 -32 -8 -32
WheelPosition 1 -32 -8 32
WheelPosition 2 32 -8 32
WheelPosition 3 32 -8 -32
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
//Tank mode activate
Tank true
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary Shell
//Time between shots in 1/20ths of seconds
PlaceTimePrimary 160
ShootDelayPrimary 100
ReloadTimePrimary 100
PlaceTimeSecondary 160
ShootDelaySecondary 100
ReloadTimeSecondary 100
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 0 30 -7 turret 
ShootPointSecondary 0 30 7 turret
ShootParticlesPrimary largeexplode 5 0 0
ShootParticlesPrimary explode 5 0 0
ShootParticlesPrimary explode 5 0 0
ShootParticlesPrimary explode 5 0 0
ShootParticlesPrimary explode 5 0 0
ShootParticlesPrimary explode 5 0 0
ShootParticlesPrimary explode 5 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary cloud 5 0 0
ShootParticlesPrimary cloud 5 0 0
ShootParticlesPrimary cloud 5 0 0
ShootParticlesPrimary cloud 5 0 0
ShootParticlesPrimary cloud 5 0 0
ShootParticlesPrimary cloud 5 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesSecondary largeexplode 5 0 0
ShootParticlesSecondary explode 5 0 0
ShootParticlesSecondary explode 5 0 0
ShootParticlesSecondary explode 5 0 0
ShootParticlesSecondary explode 5 0 0
ShootParticlesSecondary explode 5 0 0
ShootParticlesSecondary explode 5 0 0
ShootParticlesSecondary explode 6 0 0
ShootParticlesSecondary explode 6 0 0
ShootParticlesSecondary explode 6 0 0
ShootParticlesSecondary explode 6 0 0
ShootParticlesSecondary explode 6 0 0
ShootParticlesSecondary explode 6 0 0
ShootParticlesSecondary cloud 5 0 0
ShootParticlesSecondary cloud 5 0 0
ShootParticlesSecondary cloud 5 0 0
ShootParticlesSecondary cloud 5 0 0
ShootParticlesSecondary cloud 5 0 0
ShootParticlesSecondary cloud 5 0 0
ShootParticlesSecondary cloud 6 0 0
ShootParticlesSecondary cloud 6 0 0
ShootParticlesSecondary cloud 6 0 0
ShootParticlesSecondary cloud 6 0 0
ShootParticlesSecondary cloud 6 0 0
ShootParticlesSecondary cloud 6 0 0
BulletSpeed 7.5
BulletSpread 1
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 0
//Inventory Slots
CargoSlots 0
ShellSlots 0
MissileSlots 8
//Driver and passenger positions
Driver 0 11 0 -360 360 -8 85
RotatedDriverOffset 14 0 -26
Passengers 0
AllowAllAmmo False
AddAmmo aagun_12.7cm_type89_shell[aa]
AddAmmo dummyammo
//Sounds
StartSound 
StartSoundLength 0
EngineSound 
EngineSoundLength 0
PlaceSoundPrimary PlaceSound1
ShootSound AAGun_12,7cm_Type89_fire
ReloadSoundPrimary AAGun_12,7cm_Type89_reload
PlaceSoundSecondary None
ShootSoundSecondary AAGun_12,7cm_Type89_fire
ReloadSoundSecondary None
//Recipe
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts turret 14 iron
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
//AddDye 0 gray
//Health and collision
SetupPart core 2000 -36 -10 -36 72 58 72
BulletDetection 5
IsExplosionWhenDestroyed true
PlaceableOnLand true
PlaceableOnSponge true
CollisionDamageEnable false
CollisionDamageThrottle 0.75
CollisionDamageTimes 1